﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using ARchGL.Platform.Core;
using ARchGL.Platform.EntityFrameworkCore;

namespace ARchGL.Platform.Mappings
{
    public class SelfChecksMapping : IEntityTypeConfiguration<SelfChecks>
    {
        public void Configure(EntityTypeBuilder<SelfChecks> builder)
        {
            //builder.ToTable(MappingConsts.Prefix + nameof(SelfChecks));

            builder.Property(p => p.Content).HasMaxLength(500);
            builder.Property(p => p.ProjectViewPortsArray).HasMaxLength(1000);

            builder.Property(p => p.NotifyUsersArray).HasMaxLength(1000);
            builder.Property(p => p.CCUsersArray).HasMaxLength(1000); 
        }
    }
}
